package com.cac.demo.newCode.sorting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cac.demo.newCode.sorting.dto.StockDTO;
import com.cac.demo.newCode.sorting.dto.usableWorkbinDTO;
import com.cac.demo.newCode.sorting.entity.MsAoMatchBill;
import com.cac.demo.newCode.sorting.entity.MsAoMatchInfo;
import com.cac.demo.newCode.sorting.entity.MsTaskAo;
import com.cac.demo.newCode.sorting.entity.MsTaskPackage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * AO物料配套信息 Mapper 接口
 * </p>
 *
 * @author xz
 * @since 2024-08-27
 */
@Mapper
public interface MsAoMatchInfoMapper extends BaseMapper<MsAoMatchInfo> {
    public int updateMsAoMatchInfo(@Param("matchInfoId")String matchInfoId);
    public int deleteMsAoMatchInfo(@Param("matchInfoId")String matchInfoId);
    public int addMsAoMatchInfo(@Param("matchInfoId")String matchInfoId,@Param("v_workbin_info")usableWorkbinDTO v_workbin_info, @Param("v_ao_task")MsTaskAo msTaskAo, @Param("v_package_task") MsTaskPackage msTaskPackage, @Param("v_mate_bill_row") MsAoMatchBill msAoMatchBill, @Param("v_stock_row") StockDTO stock, @Param("amount")BigDecimal amount);
    public int addUsableMsAoMatchInfo(@Param("matchInfoId")String matchInfoId,@Param("v_ao_task")MsTaskAo msTaskAo, @Param("v_package_task") MsTaskPackage msTaskPackage, @Param("v_mate_bill_row") MsAoMatchBill msAoMatchBill);
}
